import permission from './permission'
import Vue from 'vue'
const install = function(Vue) {
  Vue.directive('permissionKey', permission)
}

if (window.Vue) {
  window['permissionKey'] = permission
  Vue.use(install); // eslint-disable-line
}
Vue.directive('permissionKey', permission)
permission.install = install
export default permission
